package com.example.baserecyclerviewadapterdemo.activity.node;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import androidx.annotation.Nullable;

import com.example.baserecyclerviewadapterdemo.R;
import com.example.baserecyclerviewadapterdemo.base.BaseActivity;

public class NodeAdapterActivity extends BaseActivity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_choose_node_use_type);
        getParentToolbar().setTitle("Node Use");
        getParentToolbar().setNavigationOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });

        findViewById(R.id.cardView1).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(NodeAdapterActivity.this,NodeSectionActivity.class));
            }
        });

        findViewById(R.id.cardView2).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(NodeAdapterActivity.this,NodeTreeActivity.class));
            }
        });
    }
}
